<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
  <h3>测试</h3>
  <h3>测试</h3>
  <button id="refresh">刷新</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!'
        },
        mounted(){
           setTimeout(()=>{
               alert(localStorage.getItem("token_10086"));
               setTimeout(()=>{
                   alert(localStorage.getItem("token_10086"));
               },5000);
               document.querySelector("#refresh").addEventListener("click",()=>{
                   location.reload();
               });
           },1000);
        }
    })

</script>
</body>
</html>
